package com.kaifamiao.repository;

import com.kaifamiao.entity.User;

import java.util.List;

/**
 * @author lucien-ma
 * @date 2021/10/12
 * @apiNote
 */
public interface UserRepository {
    List<User> findAll();

    User findById(Integer id);

    int save(User user);

    int update(User user);

    int deleteById(Integer id);
}
